<?php
/**
 * @orm tablename newsletter_emails
 * @orm unique(email,list)
 */
class NewsletterEmail extends DomArObject {
	
	/**
	 * @orm char(60)
	 * @orm validator Email
	 */
	public $email;
	/**
	 * @orm char(60)
	 */
	public $name;
	/**
	 * @orm has parent NewsletterList inverse emails
	 */
	public $list;
	/**
	 * @orm bool index
	 */
	public $active = true;
	
	public function getValidationErrorMessages() {
		return array(
			'email' => array(
				110 => 'Email ei ole korrektne',
			),
		
		);
		
	}
	
	
}
?>